package com.threeti.mecool.core.application.report;

import java.io.Serializable;

import com.threeti.mecool.core.util.BigDecimalUtil;

/**
 * 门店开店率
 * 
 * @author Jay Meng
 */
public class StoreOpeningRate implements Serializable {
  private String adminDivAreaName;
  private String adminDivAreaCode;
  private int plannedQuantityOfStoreOpening;
  private int actualQuantityOfStoreOpening;
  
  public StoreOpeningRate(String adminDivAreaCode, int plannedQuantityOfStoreOpening, int actualQuantityOfStoreOpening) {
    super();
    this.adminDivAreaCode = adminDivAreaCode;
    this.plannedQuantityOfStoreOpening = plannedQuantityOfStoreOpening;
    this.actualQuantityOfStoreOpening = actualQuantityOfStoreOpening;
  }

  public StoreOpeningRate(String adminDivAreaName, String adminDivAreaCode, int plannedQuantityOfStoreOpening,
      int actualQuantityOfStoreOpening) {
    this(adminDivAreaCode, plannedQuantityOfStoreOpening, actualQuantityOfStoreOpening);
    this.adminDivAreaName = adminDivAreaName;
  }

  public String getAdminDivAreaName() {
    return adminDivAreaName;
  }

  public String getAdminDivAreaCode() {
    return adminDivAreaCode;
  }

  public int getPlannedQuantityOfStoreOpening() {
    return plannedQuantityOfStoreOpening;
  }

  public int getActualQuantityOfStoreOpening() {
    return actualQuantityOfStoreOpening;
  }

  public String getPercentValueFormatted() {
    return BigDecimalUtil.percentFormattedValueOf(actualQuantityOfStoreOpening, plannedQuantityOfStoreOpening);
  }

  public int getPercentIntValue() {
    return BigDecimalUtil.percentIntValueOf(actualQuantityOfStoreOpening, plannedQuantityOfStoreOpening);
  }
  
  public StoreOpeningRate() {
    super();
  }

  @Override
  public String toString() {
    return "StoreOpenRate [adminDivAreaName=" + adminDivAreaName + ", adminDivAreaCode=" + adminDivAreaCode
        + ", plannedQuantityOfStoreOpening=" + plannedQuantityOfStoreOpening + ", actualQuantityOfStoreOpening="
        + actualQuantityOfStoreOpening + "]";
  }

  public void setAdminDivAreaName(String adminDivAreaName) {
    this.adminDivAreaName = adminDivAreaName;
  }

  public void setAdminDivAreaCode(String adminDivAreaCode) {
    this.adminDivAreaCode = adminDivAreaCode;
  }

  public void setPlannedQuantityOfStoreOpening(int plannedQuantityOfStoreOpening) {
    this.plannedQuantityOfStoreOpening = plannedQuantityOfStoreOpening;
  }

  public void setActualQuantityOfStoreOpening(int actualQuantityOfStoreOpening) {
    this.actualQuantityOfStoreOpening = actualQuantityOfStoreOpening;
  }
  
}
